package oop;

public class OOPDemo02 {
    public static void main(String[] args) {
        Student2 student1 = new Student2();
        student1.say();

        Student student2 = new Student();
        student2.say();
    }

    //静态方法和类一起调用
    public static void a(){
//        b();
    }

    //对象方法，类实例化之后才存在
    /*private void b() {

    }*/


}

class Student2 {
    //非静态方法（对象方法）
    public void say(){
        System.out.println("I am a Student!");
    }
}